package com.orangeumbrella;

import com.guyj.base.ItemViewDelegate;
import com.guyj.base.ViewHolder;
import com.orangeumbrella.entity.DayLineBean;

/**
 * 日常轨迹
 */
public class DelegateDayline implements ItemViewDelegate<Object> {
    @Override
    public int getItemViewLayoutId() {
        return R.layout.item_dayline;
    }

    @Override
    public boolean isForViewType(Object o, int i) {
        return o instanceof DayLineBean;
    }

    @Override
    public void convert(ViewHolder viewHolder, Object o, int i) {
        viewHolder.setText(R.id.tv_dayline, ((DayLineBean) o).getDayline());
    }
}
